<template>
  <div class="home">{{ num }}</div>
</template>

<script>
// @ is an alias to /src
import { useStore } from "vuex";
import { ref } from "vue";

export default {
  name: "Home",
  setup() {
    const num = ref(0);
    const store = useStore();
    num.value = store.state.user.username;
    return { num };
  },
};
</script>
